
<div class="row">
	<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
		我申请的圈子
	</div>
</div>
{module module=quan order=inputtime uid=$member.uid fstatus=1 page=1 pagesize=50}

<div class="row">

<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
	<div class="d-beijing-baise  d-neikuang-10 d-yuanjiao-10 d-quxian-0">
		
			<div class=" d-yuanjiao-10 pull-left">
				<a href="{$t.url}" class="">
				{if $t.thumb}
				<img class="d-yuanjiao-30" src="{dr_thumb($t.thumb)}" height="50" width="50"/>
				{else}
				<img class="d-yuanjiao-20" src="{HOME_THEME_PATH}quan/img/xinping.png" height="50" width="50"/>
				{/if}
				</a>
			</div>
			<div class="d-zuo-10 pull-left">
				<a href="{$t.url}" class="">
					<div class="d-jiacu d-wenzi-16 d-kuan">{dr_keyword_highlight($t.title, $keyword)}</div>
					<div class="d-wenzi-14">
						<span>
							帖子
							{count action=table table=1_quan_form_son cid=$t.id return=tiezi}
							{$tiezi_count}
						</span>
						<span class="d-zuo-20">
							用户: {$t.joins}
						</span>
						
					</div>
				</a>
			</div>
		
		<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$t.id}&leixing=wenzhang" class="d-yincang">
			<div class="d-shang-10 d-xia-10 d-you-10 pull-right">
				<div class="d-shang-2 d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> 发 帖</div>
			</div>
		</a>
		<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$t.id}&leixing=wenzhang" class="d-yincang-pc">
			<div class=" d-shang-10 d-xia-10 d-you-10 pull-right">
				<div class="d-shang-2 d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> 发 帖</div>
			</div>
		</a>
		
		<div class="d-clear"></div>
	</div>
	<div class="d-clear"></div>
</div>
</div>

{/module}
<div class="row">
	<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
		我加入的圈子
	</div>
</div>
{php $zhus='1_quan';}
{table table=1_quan_cart uid=$member.uid num=100 return=t}

	{table table=1_quan id=$t.cid num=100 return=tt}

	{if $t.uid != $tt.uid}
	<div class="row">

	<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
		<div class="d-beijing-baise  d-neikuang-10 d-yuanjiao-10  d-quxian-0">
			
				
				<div class=" d-yuanjiao-10 pull-left">
					<a href="{$tt.url}" class="">
					<img class="d-yuanjiao-20" src="{dr_thumb($tt.thumb)}" height="60" width="60"/>
					</a>
				</div>
				<div class="d-zuo-10 pull-left">
					<div class="d-jiacu d-wenzi-16 d-kuan">{$tt.title}</div>
					<div class="d-wenzi-14">
						<span>
							帖子
							{count action=table table=1_quan_form_son cid=$tt.id return=tiezi}
							{$tiezi_count}
						</span>
						<span class="d-zuo-20">
							用户: {$tt.joins}
						</span>
						{if $tt.fabu == '1' || $tt.uid == $member.id}
						<!--div class="d-yincang">
							<div class="d-chaochu-2 d-zitiyanse-hui-96 d-shang-10 ">
								{php $jianjie = dr_strcut($tt.description, 18);}
								
								<a onclick="javascript:dr_add_son_fabu_tiezi({$tt.id},'{$jianjie}','{$tt.title}');" class="d-zitiyanse-hui-96">
								{if $quantiezitu}<img src="{dr_thumb($quantiezitu)}" width="20" height="20" class="d-you-3">{else}<i class="bi bi-chat d-you-3"></i>{/if} {if $quantieziname} {$quantieziname}{else} 发帖子{/if}
								</a>
								<a  onclick="javascript:dr_add_son_fabu({$tt.id});" class=" d-zuo-10 d-zitiyanse-hui-96">
								{if $quanwenzhangtu}<img src="{dr_thumb($quanwenzhangtu)}" width="20" height="20" class="d-you-3">{else}<i class="bi bi-journal-text d-you-3"></i>{/if} {if $quanwenzhangname} {$quanwenzhangname}{else} 发文章{/if}
								</a>
							</div>
						</div-->
						{/if}
					</div>
				</div>
			
			<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$tt.id}&leixing=wenzhang" class="d-yincang">
				<div class="d-shang-10 d-xia-10 d-you-10 pull-right">
					<div class="d-shang-2 d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> 发 帖</div>
				</div>
			</a>
			<a href="/index.php?s=member&app=quan&c=son&m=add&tid=&cid={$tt.id}&leixing=wenzhang" class="d-yincang-pc">
				<div class=" d-shang-10 d-xia-10 d-you-10 pull-right">
					<div class="d-shang-2 d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> 发 帖</div>
				</div>
			</a>
			
			<div class="d-clear"></div>
		</div>
		<div class="d-clear"></div>
	</div>
	</div>
	{/if}
	{/table}
{/table}

<div class="row">
	<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
		已经删除的圈子
	</div>
</div>
{php $zhus='1_quan';}
{table table=1_quan_cart uid=$member.uid num=100 return=t}

	{php $shifuo=\Phpcmf\Service::M()->db->table('1_quan')->where('id', $t.cid)->get()->getRowArray();}
    
	{if $t.cid != $shifuo['id']}
	<div class="row">

	<div class="col-md-12 col-xs-12 d-waigao-20 d-div-zou">
		<div class="d-beijing-baise  d-neikuang-10 d-yuanjiao-10">
			<a href="{$zhu.url}" class="">
				
				<div class=" d-yuanjiao-10 pull-left">
					<img class="d-yuanjiao-20" src="{dr_thumb($tt.thumb)}" height="60" width="60"/>
				</div>
				<div class="d-zuo-10 pull-left">
					<div class="d-jiacu d-wenzi-16 d-kuan">{$tt.title}</div>
					<div class="d-wenzi-14">
						<span>
							帖子
							{count action=table table=1_quan_form_son cid=$tt.id return=tiezi}
							{$tiezi_count}
						</span>
						<span class="d-zuo-20">
							用户: {$tt.joins}
						</span>
					</div>
				</div>
			</a>
			<div class="d-kuan-100 d-shang-15 d-xia-10 d-you-10 pull-right">
				<a href="/index.php?s=member&app=quan&c=woquan&m=zhudel&id={$t.id}&cid={$t.cid}">
					<div class="d-shang-2 d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> 删 除</div>
				</a>
			</div>
			<div class="d-clear"></div>
		</div>
		<div class="d-clear"></div>
	</div>
	</div>
	{/if}
	{/table}
<div class="d-fabu d-fabu-shezhi" style="">
	<!--div class="col-xs-12 d-wenzi-juzhong d-quxian-0 d-shang-10">
	<div class="d-kuan d-neikuang-10" onclick="javascript:dr_add_son_fabu_tiezi_guanbi();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
	</div-->
	<div class="">
		<div class="">
			<div class="">
				
				<!--发布-->
				<form action="" class="" method="post" name="myform" id="myform">
				{$form}
				<input type="hidden" id="dr_row_jgtkg" name="data[jgtkg]" value="1">
				<input type="hidden" name="data[yuedumoshi]" value="1" >
				<div class="d-yuanjiao-20 d-kuan">
					<!--快捷发布-->
					<div class="d-kuan d-buhuanhang d-beijing-baise d-bianhua-10 d-yuanjiao-10 d-wenzi-14">
						<div class="d-kuan d-fabu d-yuanjiao-10">
							<div class="d-kuan d-fabu-neikuang-10">
								<div class="shuoming"><div id="d-quanzi-jianjie">...</div></div>
								<?php echo dr_fieldform('{"name":"内容","fieldname":"neirong","ismain":"1","fieldtype":"Editor","setting":{"option":{"show_bottom_boot":"0","imgtitle":"0","imgalt":"0","watermark":"0","image_ext":"jpg,gif,png,webp,jpeg","image_size":"10","attach_size":"200","attach_ext":"zip,rar,txt,doc","video_ext":"mp4","video_size":"500","attachment":"0","value":"","width":"100%","height":"100%","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $t.neirong, 1, 1);?>
								
							</div>
							<!--div class="d-kuan d-fabu-kuan">
								<textarea id="dr_content" name="data[content]" class="d-fabu-neirong" maxlength="1000" tabindex="0" autocomplete="off" placeholder="分享工作中和生活中有趣、好玩、奇葩的事..." style="min-height: 90px; height: 90px;resize: none;"></textarea>
							</div-->
							<div class="d-kuan d-fabu-fenleis">
								<div class="pull-left d-shang-20 d-buhuanhang">
									<div id="d-quanzi-fenlei"></div>
									
									<!--span class="d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-xia-10">
										<i class="bi bi-record-circle"></i> 选择分类
									</span-->
									
									<!--span class="d-zuo-10 d-wenzi-12 d-neikuang-2-5 d-bian-1 d-yuanjiao-50 d-zitiyanse-hui d-xia-10">
										<i class="fa fa-file-photo-o"></i> 图片
										
									</span-->
									<?php echo dr_fieldform('{"name":"图片","fieldname":"jiugetu","ismain":"1","fieldtype":"Filesjiugetus","setting":{"option":{"size":"10","count":"50","ext":"jpg,gif,png","attachment":"0","image_reduce":"1000","is_ext_tips":"0","css":"height: 90px;"},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $jiugetu, 1, 1);?>
									
								</div>
								<div class=" d-neikuang-10">
									<div class="d-zuo-10 pull-right" onclick="javascript:dr_add_son_fabu_tiezi_guanbi();"><i class="bi bi-x-circle-fill d-wenzi-18"></i></div>
									<button type="button" id="myButton" class="btn blue pull-right btn-sm">发 布</button>
								</div>
								<div class="d-clear"></div>
							</div>
						</div>
						
					</div>
					
				</div>
				</form>
				<!--发布-->
				
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	
	//var contentsHeight = document.body.clientHeight;
	
	$(document).ready(function() {
		window.aaa = 1;
		$('#myButton').click(function() {
			dr_fabu(aaa);
		    //alert(aaa);
			//console.log("ida",aaa);// 将显示 "Hello, world!"
		  });
		
		//console.log('高度',scrollTop);
	});

	 var is_mobile_cms = false;
	/*全部*/
	function dr_add_son_fabu(id) { 
		dr_iframe("{dr_lang('发布文章')}", "{dr_member_url('quan/son/add')}&cid="+id+"&kuai=1", '100%', '100%');
	}
	$('.d-fabu').hide();
	function dr_add_son_fabu_tiezi(id,jianjie,title) {
		$('.d-fabu').show();
		var fabuid = id;
		var jianjies = jianjie;
		var titles = title;
		window.aaa = id;
		$('#d-quanzi-jianjie').text('简介：《'+titles+'圈》'+jianjies);
		//栏目
		$.get('{SITE_URL}index.php?s=api&c=api&m=template&name=index-quanzi-fenlei.html&format=json&id='+id+'&'+Math.random(),function(res){
		   
		    if(res.code==1){
		        if (res.msg.indexOf("</div>") != -1) {
		            $('#d-quanzi-fenlei').html(res.msg);
		        } else {
		            
		        }
		    }else{
		        /*layer.msg(res.msg,{time:2500});*/
		    }
		}, 'json');
		console.log("id",id);
	}
	function dr_add_son_fabu_tiezi_guanbi(id) {
		$('.d-fabu').hide();
	}
	function dr_fabu(id) {
		dr_ajax_submit('{dr_member_url('quan/son/add', ['tid'=>'','kuai'=>1])}&cid='+id, 'myform', '0','{dr_now_url()}')
	}
	
</script>
<style>
	*, :after, :before {
	    -webkit-box-sizing: border-box;
	    -moz-box-sizing: border-box;
	    box-sizing: border-box;
		scrollbar-color: #62464600 #b3353500;
	}
	.d-fabu-shezhi {
	    z-index: 999999;
	    position: fixed;
		justify-content: center;
		top: 50%;
		left: 50%;
	    /*bottom: 0px;*/
	    width: 700px;
	    /*height: 270px;*/
	    overflow: auto;
	    background: #ffffff;
	    transform: translate(-50%, -50%);
	    box-shadow: 0 0 20px #d6d6d6;
	    background-color: rgba(255, 255, 255, 1.0);
		border-radius: 10px;
	}
	.d-fabu-tiezi{
		
		transform: translate(-50%, -50%);
	}
	.d-fabu-fenleis {
	    padding-left: 10px;
	    padding-bottom: 10px;
	    resize: none;
	    border: none;
	}
	.d-fabu {
	    padding-top: 0px;
	    border: 1px solid #ddd;
	    /* padding-bottom: 10px; */
	}
	.form-control-fabu {
		
		/*width: 100%;*/
		/*height: 34px;*/
		font-size: 12px;
		padding: 2px 2px;
		/*background-color: #f3f4f7;*/
		border: 1px solid #f3f4f7;
		border-radius: 50px;
		/*-webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
		-webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
		transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;*/
		
	}
	.form-control-fabu select {
	    background: #efefef;;
	    border-color: #ffffff;
		border-radius: 50px;
	    color: #333;
		font-size: 12px;
	    padding: 0px;
	}
	.form-control-fabu option {
	    font-weight: normal;
	    display: block;
	    white-space-collapse: collapse;
	    text-wrap: nowrap;
	    min-height: 1.2em;
	    padding: 0px 2px 1px;
	}
	.d-yincang-wenzi-jiugetu {
		display: none
	}
	.d-yincang-tu-jiugetu {
		display: none
	}
	.d-anniu-jiugetu {
		margin-top: 2px;
	    padding: 2px 7px;
		font-size: 12px;
		line-height: 1.5;
		border-radius: 50px;
		float: left!important;
		background-color: #efefef;
		color: #aaaaaa;
	}
	#fileupload_jiugetu {
		float: left!important;
	}
	.preview {
	    height: 55px;
	    border: 1px solid #f5f5f5;
	}
	.files_row .preview img {
	    max-height: 40px;
	    overflow: hidden;
	}
	.note-toolbar {
		display: none
	}
	.note-editor.note-frame .note-editing-area .note-editable, .note-editor.note-airframe .note-editing-area .note-editable {
	    padding: 0px;
	    overflow: auto;
	    word-wrap: break-word;
		min-height: 100px;
	}
	.note-statusbar {
		display: none
	}
	.d-fabu-neikuang-10 {
		padding: 10px 10px 0 10px;
	}
	.panel {
	    margin-bottom: 0px;
	    background-color: #fff;
	    border: 1px solid transparent;
	    border-radius: 4px;
	    -webkit-box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
	}
	.note-editable hr, .note-editable p {
	    margin: 2px 0;
	}
	.note-editor.note-frame, .note-editor.note-airframe {
		
	    border: 1px solid #ffffff;
	    border-radius: 4px;
	}
	.note-editable {
	  position: relative;
	}
	
	.note-editable:hover {
	  outline: none;
	  ::placeholder {
	    visibility: hidden;
	  }
	.shuoming {
		left: 0;
		top: 10px;
		position: fixed;
		width: 100px;
		  height: 100px;
	}
</style>